package com.imooc.miaosha.dao;

import com.imooc.miaosha.pojo.MiaoshaGoods;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("miaoshaGoodsMapper")
public interface MiaoshaGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MiaoshaGoods record);

    int insertSelective(MiaoshaGoods record);

    MiaoshaGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MiaoshaGoods record);

    int updateByPrimaryKey(MiaoshaGoods record);
    List<MiaoshaGoods> getMiaoShaGoodByGoodsId(Long goodsId);
    int updateMiaoShaStock(Long miaoshaId);
}